There are 19 different get properties that you can use to find the current values of objects in Flash. All Get Property names begin with an underscore, have no spaces and are all lowercase. Whereas, the names for properties when being "set", start with capital letters and may have spaces. For instance, the vertical position parameter is called Y Position in Set Property, but it is _y for Get Property.The Expression Editor has a list of all the correct names and you can double click on a name to enter it into your script.
In our example below, our bird rotates one degree at a time. Frame two, increments and displays the rotation. To display the changing rotation the frame must change, so a loop is created between frame 3 and frame 2.
Set Variable: "x" = x + 1 Set Property ("/Bird", Rotation) = xTo find the current rotation of the movie clip Bird, we use Get Property. Pressing the Check button moves the the animation to frame 4 where we set the variable Rotation to the rotation property of the bird and we display it in a text box using the same variable name Rotation.Set Variable: "Rotation" = GetProperty ( "/Bird",_rotation)Notice, how the rotation property starts at zero and increases to 180 degrees and then becomes negative going from - 179 back to zero again.
Download FLA in Zip formatGet Properties
_x Horizonal X Position _y Vertical Y Position _width Width _height Height _rotation Rotation _target Target Path _name Instance Name _url URL _xscale X Scale Factor _yscale Y Scale Factor _currentframe Current Frame _totalframes Total Frames _framesloaded Frames Loaded _alpha Alpha Transparency Percentage _visible Visibility _droptarget Drag action's Drop PositionGlobal Get Properties
_highquality High Quality _focusrectangle Show Focus Rectangle _soundbuftime Sound Pre buffer Time